Skip to content

Add HH support for col-wise sharding #3269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

liuzijing2014
Copy link

Summary:
As title, allows col_wise to take a a list of customized device types so that for each shard, we are able to specify which device to place it on to.

For example, from ([10, 20, 30], "cpu") to ([10, 20, 30], ["cpu", "cpu", "gpu"])

Reviewed By: gyllstromk

Differential Revision: D79600418

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 8, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79600418

liuzijing2014 pushed a commit to liuzijing2014/torchrec that referenced this pull request Aug 11, 2025
Summary:

As title, allows `col_wise` to take a a list of customized device types so that for each shard, we are able to specify which device to place it on to. 

For example, from `([10, 20, 30], "cpu")` to `([10, 20, 30], ["cpu", "cpu", "gpu"])`

Reviewed By: gyllstromk, faran928

Differential Revision: D79600418
Summary:
Pull Request resolved: pytorch#3269

As title, allows `col_wise` to take a a list of customized device types so that for each shard, we are able to specify which device to place it on to.

For example, from `([10, 20, 30], "cpu")` to `([10, 20, 30], ["cpu", "cpu", "gpu"])`

Reviewed By: gyllstromk, faran928

Differential Revision: D79600418
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79600418

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants